<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>welcome</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="__STATIC__/xadmin/css/font.css">
        <link rel="stylesheet" href="__STATIC__/xadmin/css/xadmin.css">
        <script src="__STATIC__/xadmin/lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="__STATIC__/xadmin/js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
        <style>
            .x-admin-sm .x-admin-backlog-body p cite{
                font-size: 20px;
            }
        </style>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <blockquote class="layui-elem-quote">欢迎{$group['title']}：
                                <span class="x-red">{$username}</span>！&nbsp;&nbsp;&nbsp;登录时间:{$login_time}&nbsp;&nbsp;&nbsp;&nbsp;登录IP:{$login_ip}
                            </blockquote>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-header">技术支持</div>
                        <div class="layui-card-body ">
                            <table class="layui-table">
                                <tbody>
                                    <tr>
                                        <th>版权所有</th>
                                        <td>数据统计平台<a href="/" target="_blank">访问官网</a></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>               
            </div>
        </div>
        </div>
    </body>

    <script>
        function refsh(){
            $.ajax({
                url:"{:url('refsh')}",
                type:"POST",
                success:function(){
                    window.location.reload();
                }
            })
        }
        function tojump(url, parameter='') {
            var test1 = $('#test1').val();
            var test2 = $('#test2').val();
            if( test1 == '' ) {
                var day2 = new Date();
                // return false;
                day2.setTime(day2.getTime());
                test1 = day2.getFullYear()+"-" + (day2.getMonth()+1) + "-" + day2.getDate();
            }
            if( test2 == '' ) {
                var day3 = new Date();
                day3.setTime(day3.getTime()+24*60*60*1000);
                test2 = day3.getFullYear()+"-" + (day3.getMonth()+1) + "-" + day3.getDate();
            }
            parameter += "&start="+test1+"&end="+test2;
            setTimeout(function(){
                window.location.href=url+'?'+parameter;
            });
        }

      /*  function souData()
        {
            var test1 = $('#test1').val();
            var test2 = $('#test2').val();
            if( test1 == '' ) return layer.msg('请输入开始时间');
            if( test2 == '' ) return layer.msg('请输入结束时间');
            $.ajax({
                type: "post",
                url: "{:url('index/soudata');}",
                data: {'liftTime':test1, 'rightTime':test2},
                success: function(data) {
                    if( data.state == 1 ) {
                        $('#count1').html(data.data.shitingyueke);
                        $('#count2').html(data.data.zhengshiyueke);
                        $('#count3').html(data.data.shitingshangke);
                        $('#count4').html(data.data.zhengshishangke);
                        $('#count5').html(data.data.studentCount);
                        $('#count6').html(data.data.studentOrder);
                    }
                },
                error: function(data) {
                    return 0;
                }
            });
        }*/

        Date.prototype.Format = function (fmt) { //author: meizz
            var o = {
                "M+": this.getMonth() + 1, //月份
                "d+": this.getDate(), //日
                "H+": this.getHours(), //小时
                "m+": this.getMinutes(), //分
                "s+": this.getSeconds(), //秒
                "q+": Math.floor((this.getMonth() + 3) / 3), //季度
                "S": this.getMilliseconds() //毫秒
            };
            if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
            for (var k in o)
                if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
            return fmt;
        }

        layui.use('laydate', function(){
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#test1' //指定元素
            });
        });

        layui.use('laydate', function(){
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#test2' //指定元素
            });
        });
    </script>
</html>